package Sale;
import Function.Buy;


public class Window {
    public static void window(int totalQuantity) {

        SaleGoods saleGoods = new SaleGoods(totalQuantity);

        Thread t1 = new Thread(saleGoods, "窗口1");
        Thread t2 = new Thread(saleGoods, "窗口2");
        Thread t3 = new Thread(saleGoods, "窗口3");

        t1.start();
        t2.start();
        t3.start();
    }
}
